<%@ page language="java" import="java.util.*"
	contentType="text/html; charset=utf-8"%>
<!doctype html>
<html class="no-js">
<head>

<%@ include file="../commoms/link.txt"%>
<script src="assets/js/pagejs/EmployerInfo.js"></script>
<meta name="description" content="EmployerInfo">
<style type="text/css">
label {
	font-family: sans-serif;
}

div[name] {
	padding: 20px, 10px, 10px, 20px;
}

h2 {
	margin: 10px;
	padding: 10px;
	font-family: sans-serif;
	background-color: #F0FFFF;
}
</style>
</head>
<body>
	<%@ include file="../commoms/ERHeader.txt"%>




	<div class="admin-content">
		<div class="am-cf am-padding">
			<div class="am-fl am-cf">
				<strong class="am-text-primary am-text-lg">企业资料</strong>
			</div>
		</div>

		<hr />

		<div class="am-g">

			<div class="am-u-sm-12 am-u-md-4 am-u-md-push-8">
				<div class="am-panel am-panel-default">
					<div class="am-panel-bd">
						<div class="am-g">
							<div class="am-u-md-4">
								<img class="am-img-circle am-img-thumbnail" id="logo" alt="企业图标" />
							</div>
							<div class="am-u-md-8">
								<p>你可以使用企业的标志提供的标志或者是自己的头像</p>
                            <button type="button" onclick="javascript:window.location.href='/upload/uploadicon.jsp?page=2'" class="am-btn am-btn-primary am-btn-lg">上传logo</button>
							</div>
						</div>
					</div>
				</div>


			</div>

			<div class="am-u-sm-12 am-u-md-8 am-u-md-pull-4">
				<form class="am-form am-form-horizontal" action="finishERInfo.do"
					method="post" id="finishERInfoformtooltip" data-am-validator>

					<div id="baseInfo">
						<h2>基本信息</h2>
						<div class="am-form-group">
							<label for="name" class="am-u-lg-3 am-form-label" maxlength=30  >公司名称</label>
							<div class="am-u-lg-9">
								<input type="text" id="name" placeholder="公司名称" name="name"
									data-foolish-msg="必填" required="required">
							</div>
						</div>
						<div class="am-form-group">
							<label for="EnterprisePlace" class="am-u-lg-3 am-form-label">公司地址</label>
							<div id="EnterprisePlace" class="am-u-lg-9">
								<select id="s_province" name="s_province" class="am-inline"
									onclick="changeplace1(this)" style="width: 20%"></select>&nbsp;&nbsp;
								<span id="city"></span> <span id="contry"></span>

							</div>
						</div>
						<div class="am-form-group">
							<label for="address" class="am-u-lg-3 am-form-label">详细地址</label>
							<div class="am-u-lg-9">
								<input type="text" id="address" name="address"
									placeholder="详细地址">
							</div>
						</div>
						<div class="am-form-group">
							<label for="scale" class="am-u-lg-3 am-form-label">公司规模</label>
							<div class="am-u-lg-9">
								<input type="text" id="scale" name="scale" placeholder="公司规模">
							</div>
						</div>
						<div class="am-form-group">
							<label for="JobCommission" class="am-u-lg-3 am-form-label" >公司简介</label>
							<div class="am-u-lg-9">
								
							<textarea rows="5" id="JobCommission" name="comment" class="am-form-field am-inline" style="width: 75%" placeholder="输入简介信息，如果没有请勿填写，限制30字" required="required"></textarea>
							


							</div>
						</div>
					</div>

					<div id="EnterpriseContactInformation">
						<h2>联系方式</h2>
						<div class="am-form-group">
							<label for="contactor" class="am-u-lg-3 am-form-label">联系人</label>
							<div class="am-u-lg-9">
								<input type="text"  maxlength="10"  id="contactor" name="contactor"
									data-foolish-msg="联系人必填" required="required">
							</div>
						</div>
						<div class="am-form-group">
							<label for="tel" class="am-u-lg-3 am-form-label">联系电话</label>
							<div class="am-u-lg-9">
								<input type="text" pattern="1[0-9]{10}" id="tel" placeholder="请输入手机号或者工作电话"
									name="tel">

							</div>
						</div>
						<div class="am-form-group">
							<label for="email" class="am-u-lg-3 am-form-label">公司邮箱</label>
							<div class="am-u-lg-9">
								<input type="email" id="email" placeholder="输入公司邮箱 "
									name="email">

							</div>
						</div>

						<div class="am-form-group">
							<label for="wechatid" class="am-u-lg-3 am-form-label">公众号</label>
							<div class="am-u-lg-9">
								<input type="text" id="wechatid" name="wechatid"
									data-foolish-msg="公众号" >
							</div>
						</div>

					</div>


					<div class="am-form-group">
						<div class="am-u-lg-9 am-u-sm-push-3">
							<button type="submit" class="am-btn am-btn-primary">保存修改</button>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>

	<%@ include file="../commoms/alert.txt"%>


	<a href="#"
		class="am-icon-btn am-icon-th-list am-show-sm-only admin-menu"
		data-am-offcanvas="{target: '#admin-offcanvas'}"></a>



	<script type="text/javascript">
		var $div = $('#place');
		var $form = $('#finishERInfoformtooltip');
		var msg=GetQueryString('msg');
		if(msg!=null)
			myAlert('提示','只有完善信息才可以发布兼职');
		setFormValidate($form);

		myAjax('/showERInfo.do', {}, function(data) {
			var country = data.divisionid;
	
			if (country != null) {
				getPlaceList(domain + '/getProvince.do', 's_province', {},
						country.substring(0, 2) + "0000");
				appendCity1();
				getPlaceList(domain + '/getCities.do', 's_city', {
					'Province' : country.substring(0, 2) + "0000"
				}, country.substring(0, 4) + "00");
				appendContry1();
				getPlaceList(domain + '/getCountries.do', 's_county', {
					'City' : country.substring(0, 4) + "00"
				}, country);
			} else
				placeInit1();
			if(data.logo!=null)
				$('#logo').attr('src',data.logo);
			if(data.name!=null)
				$('#name').val(data.name);
			if(data.address!=null)
				$('#address').val(data.address);
			if(data.scale!=null)
				$('#scale').val(data.scale);
			if(data.comment!=null)
				$('#JobCommission').text(data.comment);
			if(data.contactor!=null)
				$('#contactor').val(data.contactor);
			if(data.tel!=null)
				$('#tel').val(data.tel);
			if(data.email!=null)
				$('#email').val(data.email);
			if(data.wechatid!=null)
				$('#wechatid').val(data.wechatid);
			
		});
	</script>
</body>
</html>
